package deepclone.cloneable;

/**
 * @author wangLin
 * @version 1.0
 * @projectName prototype20210416
 * @className Attachment1
 * @date 2021-04-20 周二
 * @time 11:05
 * @description TODO
 */

/**
 * 附件类
 */
public class Attachment1 implements Cloneable{
    /**
     * 附件名
     */
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void download(){
        System.out.println("下载附件，文件名为："+name);
    }

    @Override
    protected Attachment1 clone() throws CloneNotSupportedException {
        return (Attachment1)super.clone();
    }
}
